home *** CD-ROM | disk | FTP | other *** search
/ Komputer for Alle 1998 #1 / K-CD 0198.iso / musik / midi.txt < prev    next >
Text File  |  1997-07-01  |  31KB  |  826 lines

  1.  
  2.  
  3. Using MCI for device and media control (#3521)
  4.  
  5. Product: General Platform: Mac and Win 
  6.  
  7.  
  8. Determining the version of Video for Windows and QuickTime in Director
  9.  
  10. You can use the Lingo command "MCI" (Media Control Interface) to send strings from within Director to the MCI drivers that are loaded in Windows. The MCI driver will in turn control the actual devices or files that you are trying to control, such as a laser disc players, digital video files, MIDI sound files, or other such external elements. 
  11.  
  12. The following handler tells Director to pass MCI calls to the MCI digital video drivers. The MCI command finds out the version of QuickTime or Video for Windows. In addition, the handler sends an MCI string to actually play a digital video movie, which is located in the same directory as the Director movie. 
  13.  
  14. Director for Windows: 
  15.  
  16.  
  17. on exitFrame
  18.  
  19.    MCI "open AVIVIDEO alias filename.avi"
  20.  
  21.    MCI "info filename.avi version"
  22.  
  23.    put the result into field "Display"
  24.  
  25.    MCI "play filename.avi"
  26.  
  27.    go to the frame
  28.  
  29. end
  30.  
  31.  
  32.  
  33.  
  34.  
  35. To find out the QuickTime version, simply substitute QTWVIDEO for AVIVIDEO, and filename.mov for filename.avi. In order to get this information on the Macintosh, you need the QTVersion XFCN. 
  36.  
  37. The "MCI" Lingo command sends strings to the MCI drivers loaded in Windows. By typing MCI "sample mci string" in a Lingo handler, Director tells MCI to execute the command in quotes, i.e. MCI "Play CDAUDIO". 
  38.  
  39. Note: Be sure that you use the close command to close the device after the movie is finished playing. If you close the device right after you issue the play command without delay, the movie will only play for a short time, and you will see the movie "flash". 
  40.  
  41.  
  42. Determining the version of Video for Windows or QuickTime in Authorware
  43.  
  44. Load the MCISendString and MCIReturnString functions from A3WMME.UCD on your Authorware 3.0 CD-ROM. The files are located in the directory, "Goodies\UCD". For directions on how to load a function, see "Loading Functions" on page 540 of "Using Authorware". 
  45.  
  46. In order to determine the version of QuickTime or Video for Windows, set up a new file and perform the following steps. Drag a calculation icon to the flowline. Type the following lines into the calculation icon. (Be sure to realize that sharks.avi is only a sample name; you should put in the name and pathname of a digital video file that you actually have on your disk.) The alias "movie" is simply a new, easier-to-use name, that represents a link to your path and filename. 
  47.  
  48. MCISendString("open sharks.avi type AVIVIDEO alias movie")
  49. MCISendString("play movie")
  50. MCISendString("info movie version")
  51. result :=MCIReturnString()
  52.  
  53.  
  54. Finally, you need to drag a display icon to the flowline. Open up the icon. Type {result} with the text tool. This will display the variable "result", which now contains the version number of Video for Windows. Remember, if you need the QuickTime version, simply substitute QTVIDEO for AVIVIDEO in the above calculation. 
  55.  
  56. Note: Be sure that you use the close command to close the device after the movie is finished playing. If you close the device right after you issue the play command without delay, the movie will only play for a short time, and you will see the movie "flash". 
  57.  
  58.  
  59.  
  60.  
  61. Playing digital video movies with MCI in Authorware for Windows:
  62.  
  63. For details on how to run your digital video through MCI, note the following resources: 
  64.  
  65.  
  66.  
  67. òPage 73 of "Authorware Tips and Tricks" which 
  68. ships with Authorware for Windows.
  69. òTechNote #3013, "Playing Digital Video Devices 
  70. with MCI in APW"
  71. òTechNote #3028, "ReelMagic MPEG Playback in Authorware."
  72.  
  73.  
  74.  
  75.  
  76. Two books for MCI are the "Microsoft Multimedia Programmers' Reference" in various editions from Microsoft Press, and "Windows Multimedia 3.1" by Roger Jennings [Que, 1992]. Both describe a wide range of Media Control Interface commands. 
  77.  
  78.  
  79.  
  80. It's important to note, though, that various MCI devices will respond to various commands in various ways. MCI provides an interface between applications and media devices, but does not mandate how they will interact. 
  81.  
  82. Another useful resource while developing with MCI is CompuServe. The Multimedia, WinMedia, and various Microsoft forums are gathering places for many people with strong MCI experience. Lurking or posting messages there is the fastest way to gain MCI expertise. Microsoft's Web URL on the Internet is: 
  83.  
  84. http://www.microsoft.com. 
  85.  
  86.  
  87.  
  88.  
  89. MCI Reference
  90.  
  91.  
  92.  
  93. This section is included for a quick reference. These commands only scratch the surface of Windows Multimedia Extensions. You should consult the above-mentioned books for complete programming reference. 
  94.  
  95. The Media Control Interface (MCI) is a high-level command interface to multimedia devices and resource files. MCI provides applications with device-independent capabilities for controlling audio and visual peripherals. Your application can use MCI to control any supported multimedia device, including audio playback and recording. For a full overview of MCI, see the Multimedia Programmer's Guide. 
  96.  
  97. MCI provides standard commands for playing multimedia devices and recording multimedia resource files. Using MCI, an application can control multimedia devices using simple commands like open, play, and close. MCI commands are a generic interface to multimedia devices. 
  98.  
  99.  
  100.  
  101.  
  102. MCI includes the following interfaces:
  103.  
  104. The command-message interface consists of C constants and structures. The Multimedia Programmer's Guide describes the command-message interface and presents numerous examples on using the command messages to control audio devices. In the Multimedia Programmer's Reference, the individual command messages and structures are described in Chapter 4, "Message Overview", Chapter 5, "Message Directory", and Chapter 6, "Data Types and Structures." 
  105.  
  106. The command-string interface provides a textual version of the command messages. The strings use an easy-to-read format that makes it easy to control MCI devices from C programs and multimedia authoring tools. Command strings duplicate the functionality of the command messages; Windows converts the command strings to command messages before sending them to the MCI driver for processing. 
  107.  
  108.  
  109.  
  110.  
  111. Controlling MCI Devices
  112.  
  113. To control an MCI device, you open the device, send the necessary commands to it, and then close the device. For example, the following series of MCI commands play rack 6 of an audio CD: 
  114.  
  115. "open cdaudio"
  116.  
  117.  
  118. "set cdaudio time format tmsf"
  119. "play cdaudio from 6 to 7"
  120. "close cdaudio"
  121.  
  122.  
  123. The next example shows a similar series of MCI commands that play the first 10,000 samples of a waveform audio file: 
  124.  
  125. "open c:\mmdata\purplefi.wav type waveaudio alias finch"
  126.  
  127.  
  128. "set finch time format samples"
  129. "play finch from 1 to 10000"
  130. "close finch"
  131.  
  132.  
  133. You will note the following from the previous examples: 
  134.  
  135. The same basic commands (open, play, and close) are used with both devices. The open command for the "waveaudio" device includes a filename specification. The "waveaudio" device is a compound device (one associated with a media element), while the "cdaudio" device is a simple device (one without an associated media element). 
  136.  
  137. The set commands both specify time formats, but the time-format options for the "cdaudio" device differ from those used with the "waveaudio" device. 
  138.  
  139. The parameters used with the from and to flags are appropriate to the respective device. For the "cdaudio" device, the parameters specify a range of tracks; for the "waveaudio" device, the parameters specify a range of samples. 
  140.  
  141.  
  142.  
  143.  
  144. MCI Device Types and Drivers
  145.  
  146. MCI recognizes a basic set of device types. A device type is a set of MCI drivers that share a common command set and are used to control similar multimedia devices or data files. The following table lists the currently defined device types. The current implementation of MCI includes command sets for a subset of these devices. 
  147.  
  148.  
  149.  
  150.  
  151.  
  152. Device Type      Description
  153.  
  154. -----------      --------------------------
  155.  
  156. animation        Animation device
  157.  
  158. cdaudio          Audio CD player
  159.  
  160. dat              Digital audio tape player
  161.  
  162. digitalvideo     Digital video in a window (not GDI based)
  163.  
  164. other            Undefined MCI device
  165.  
  166. overlay          Overlay device (analog video in a window)
  167.  
  168. scanner          Image scanner
  169.  
  170. sequencer        MIDI sequencer
  171.  
  172. vcr              Videotape recorder or player
  173.  
  174. videodisc        Videodisc player
  175.  
  176. waveaudio        Audio device that plays digitized waveform files 
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186. MCI Device Names
  187.  
  188. For any given device type, there might be several MCI drivers that share the command set but operate on different data formats. For example, the animation device type might include several MCI drivers that use the same command set but play different types of animation files. To uniquely identify a MCI driver, MCI uses device names. Device names are identified in the [mci] section of the SYSTEM.INI file. The [mci] section of SYSTEM.INI identifies all MCI drivers to Windows. The following example shows a typical [mci] section: 
  189.  
  190. [mci]
  191.  
  192.  
  193. waveaudio=mciwave.drv
  194. sequencer=mciseq.drv
  195. avivideo=mciavi.drv
  196. cdaudio=mcicda.drv
  197.  
  198.  
  199. The name on the left side of the equal sign is the driver device name. The value on the right side of the equal sign identifies the filename of the MCI driver. Frequently, the device name is the same as the device type for the driver, as is the case for the waveaudio, sequencer, and cdaudio devices in the preceding example. If an MCI driver is installed using a device name that already exists in the [mci] section, Windows appends an integer to the device name of the new driver, creating a unique device name. In the preceding example, a driver installed using the cdaudio device name would be assigned device name "cdaudio1." A subsequent cdaudio device would be assigned device name "cdaudio2." 
  200.  
  201.  
  202.  
  203.  
  204. MCI Drivers Included with Windows
  205.  
  206. The retail Windows package includes the following MCI drivers: 
  207.  
  208.  
  209.  
  210.  
  211. Device Name  Driver Filename  Description
  212.  
  213.  
  214. -----------------------------------------
  215. sequencer    MCISEQ.DRV       An MCI device driver for playing MIDI 
  216.  
  217.  
  218.                               audio files.
  219.  
  220. waveaudio    MCIWAVE.DRV      An MCI device driver for playing and recording 
  221.  
  222.                               waveform audio files.
  223.  
  224.  
  225.  
  226.  
  227.  
  228.  
  229. The Windows setup program creates an [mci] section in SYSTEM.INI that lists the sequencer and waveaudio devices. The device names are the same as the device type names. 
  230.  
  231.  
  232.  
  233. The Windows SDK includes the following additional MCI drivers: 
  234.  
  235.  
  236.  
  237.  
  238. Device Name  Driver Filename  Description
  239.  
  240. -----------------------------------------
  241.  
  242. cdaudio      MCICDA.DRV         An MCI device driver for controlling 
  243.  
  244.                              compact disc audio.
  245.  
  246. videodisc    MCIPIONR.DRVAn  MCI device driver for controlling 
  247.  
  248.                              the Pioneer LD-V4200 videodisc player.
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255. To install these devices, use the Drivers setting in Control Panel. You can distribute the MCICDA.DRV and MCIPIONR.DRV drivers with any applications that require them. Other MCI drivers can be distributed with the applications or hardware devices that use them. 
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262. Syntax of Command Strings
  263.  
  264. MCI command strings use a consistent verb-object-modifier syntax. Each command string includes a command, a device identifier, and command arguments. Arguments are optional on some commands and required on other commands. 
  265.  
  266. A command string has the following form: 
  267.  
  268. command device_id arguments
  269.  
  270.  
  271. These components contain the following information: 
  272.  
  273. The command specifes an MCI command. Examples of commands include:
  274. open, close, and play.
  275.  
  276.  
  277. The device_id specifies an instance of an MCI driver. The device_id is created when the device is opened. 
  278.  
  279. See "Using the Open Command" for information on how the device ID is assigned. 
  280.  
  281. The arguments specify the flags and parameters used by the command. Flags are key words recognized with the MCI command. Parameters are numbers or strings that apply to the MCI command or flag. 
  282.  
  283. For example, the play command uses the arguments from position and to position to indicate the positions to start and end playing. You can list the flags used with a command in any order. When you use a flag that has a parameter associated with it, you must supply a value for the parameter. 
  284.  
  285. Unspecified (and optional) command arguments assume a default value. 
  286.  
  287.  
  288. Data Types for Command Parameters
  289.  
  290. You can use the following data types for the parameters in a command string: 
  291.  
  292. Data Type Description 
  293.  
  294. String data types are delimited by leading and trailing white space and quotation marks ("). MCI removes single quotation marks from a string. To put a quotation mark in a string, use a set of two quotation marks where you want to embed your quotation mark. To use an empty string, use two quotation marks to delimit the empty string. 
  295.  
  296.  
  297.  
  298.  
  299. Signed long integers
  300.  
  301. Signed long integer data types are delimited by leading and trailing white space. Unless otherwise specified, integers can be positive or negative. If you use negative integers, don't put any space between the minus sign and the first digit. 
  302.  
  303.  
  304.  
  305.  
  306. Rectangles
  307.  
  308. Rectangle data types are an ordered list of four signed short values. White space delimits this data type as well as separates each integer in the list. 
  309.  
  310.  
  311.  
  312.  
  313. Using the Wait Flag
  314.  
  315. Normally, MCI commands return to the user immediately, even if it takes several minutes to complete the action initiated by the command. For example, after a VCR device receives a rewind command, the command returns when the tape starts to rewind. It does not wait for the tape to finish rewinding. You can use the wait flag to direct the device to wait until the requested action is completed before returning control to the application. 
  316.  
  317. For example, the following play command won't return control to the application until the playback completes: 
  318.  
  319. "play mydevice from 0 to 100 wait" 
  320.  
  321. The user can cancel a wait operation by pressing a break key. By default, this key is CTRL+BREAK. When a wait operation is cancelled, MCI attempts to return control to the application without interrupting the command associated with the wait flag. For example, in the preceding example, breaking the play command cancels the wait operation without interrupting the play operation. To redefine the break key, use the break command. 
  322.  
  323.  
  324.  
  325.  
  326. Using the Notify Flag
  327.  
  328. The notify flag directs the device to post an MM_MCINOTIFY message when the device completes an action. Your application must have a window procedure to process the MM_MCINOTIFY message for notification to have any effect. The Multimedia Programmer's Guide includes examples of window procedures that process the MM_MCINOTIFY message. 
  329.  
  330. A notification message can indicate one of the following results: 
  331.  
  332.  
  333.  
  334. òThe notification is successful òThe notification is superseded òThe notification is aborted òThe notification fails 
  335.  
  336.  
  337.  
  338. A successful notification occurs when the conditions required for initiating the callback are satisfied and the command completed without interruption. 
  339.  
  340.  
  341.  
  342. A notification is superseded when the device has a notification pending and you send it another notify request. When a notification is superseded, MCI resets the callback conditions to correspond to the notify request of the new command. 
  343.  
  344. A notification is aborted when you send a new command that prevents the callback conditions set by a previous command from being satisfied. For example, sending the stop command cancels a notification pending for the "play to 500 notify" command. If your command interrupts a command that has a notification pending, and your command also requests notification, MCI will abort the first notification immediately and respond to the second notification. 
  345.  
  346. A notification fails if a device error occurs while a device is executing the MCI command. For example, a notification fails when a hardware error occurs during a play command. 
  347.  
  348.  
  349.  
  350.  
  351. Using All as the Device ID
  352.  
  353. You can specify all as a device ID for any command that does not return information. When you specify all, MCI sequentially sends the command to all devices opened by the current application. 
  354.  
  355. For example, "close all" closes all open devices and "play all" starts playing all devices opened by the application. Because MCI sequentially sends the commands to the MCI devices, there is a delay between when the first device receives the command and when the last device receives the command. 
  356.  
  357.  
  358.  
  359.  
  360. Combining the Device Name and Element Name
  361.  
  362. You can eliminate the type flag in the open command if you combine the device name with the device element name. MCI recognizes this combination when you use the following syntax: 
  363.  
  364. "device_name!element_name" 
  365.  
  366. The exclamation point separates the device name from the element name. There should not be any spaces between the exclamation point and the device_name or element_name. The following example opens the RIGHT.WAV element using the "waveaudio" device: 
  367.  
  368. "open waveaudio!right.wav" 
  369.  
  370.  
  371.  
  372.  
  373. Opening Devices Automatically
  374.  
  375. If MCI cannot identify the device_name of a command as an open device, MCI tries to automatically open the specified device. The following items apply to devices automatically opened: 
  376.  
  377. Automatic open works only with the command-string interface. 
  378.  
  379. Automatic open does not let your application specify the type flag. Without the device name, MCI determines the device name from the [mci extensions] section of the WIN.INI file. To use a specific device, you can combine the device name name with the device element name using the exclamation point. (See "Combining the Device Name and Element Name for information".) 
  380.  
  381. Automatic open will fail for commands that are specific to custom device drivers. For example, the command used to unlock the front panel of the Pioneer videodisc player will fail an automatic open. The command used for unlocking the front panel is specific only to this videodisc player. 
  382.  
  383. Automatically opened devices don't respond to commands that use all as a device name. 
  384.  
  385. MCI automatically closes any device automatically opened using the command-string interface. MCI closes a device in the following situations: 
  386.  
  387.  
  388.  
  389. òWhen the command is completed òWhen you abort the command òWhen you request notification in a subsequent command òWhen MCI detects a failure 
  390.  
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398. Using the Open Command
  399.  
  400.  
  401.  
  402. Before using a device, you must initialize it by using the open command. The open command loads the driver into memory (if it isn't already loaded) and establishes the device ID that you will use to identify the device in subsequent MCI commands. The number of devices you can have open is limited only by the amount of available memory. The open command has the following form: 
  403.  
  404. open device shareable type device_name alias alias 
  405.  
  406. The parameters for the open command are as follows: 
  407.  
  408.  
  409.  
  410.  
  411. Parameters        Description
  412.  
  413. ----------        ----------------------------------
  414.  
  415. device            Identifies the MCI driver or media 
  416.  
  417.                   element to open.
  418.  
  419. shareable         Allows applications to share a common
  420.  
  421.                   device or device element.
  422.  
  423. type device_name  Identifies the MCI device name when 
  424.  
  425.                   device refers to a media element instead of
  426.  
  427.                   a specific MCI device name.
  428.  
  429. alias alias       Specifies replacement name alias for 
  430.  
  431.                   the device.
  432.  
  433.  
  434.  
  435.  
  436. When specifying a device name in the device or device_name parameters, you can specify a device name from the SYSTEM.INI file or the filename of the device driver. If you specify the filename of the device driver, you can optionally include the .DRV extension; don't include the path to the file. 
  437.  
  438. Note: Opening a device using the device driver filename makes the application device dependent and can prevent the application from running if the system configuration changes. 
  439.  
  440. For example, the following command opens the cdaudio device and assigns alias "mycd": 
  441.  
  442. "open cdaudio alias mycd" 
  443.  
  444. The next command opens waveform file C:\WINDOWS\CHIMES.WAV and assigns alias "chimes": 
  445.  
  446. "open c:\windows\chimes.wav type waveaudio alias chimes" 
  447.  
  448.  
  449.  
  450.  
  451. How the Device ID Is Assigned
  452.  
  453. The device ID established by the open command identifies the open MCI device in all subsequent commands. If you specify a device alias using the alias keyword, the device ID will be the alias. Otherwise, the device ID will be the device name. 
  454.  
  455.  
  456.  
  457.  
  458. Playing a Device
  459.  
  460. The play command starts playing a device. Without any flags, the play  command starts playing from the current position and plays until the command is halted or until the end of the media or file is reached. For example, the following command starts playing an audio disc from the position where it was stopped: 
  461.  
  462. "play cdaudio" 
  463.  
  464. Most devices that support the play command also support the from and to flags. These flags indicate the position at which the device should start and stop playing. For example, the following command plays an audio disc from the beginning of the first track: 
  465.  
  466. "play cdaudio from 0" 
  467.  
  468. Some device types extend the play command to use the capabilities of a particular device. For example, the play command for videodisc devices adds the fast, slow, and scan flags. 
  469.  
  470.  
  471. Specifying Time Formats
  472.  
  473. The units assigned to the position value depend on the time format used by the device. Each device has a default time format, but it's always good practice to specify the time format (using the set command) before issuing any commands that use position values. 
  474.  
  475.  
  476.  
  477.  
  478. Stopping and Pausing a Device
  479.  
  480. The stop command suspends the playing or recording of a device. Many devices also include the basic command pause. The difference between stop and pause depends on the device. Usually pause suspends operation but leaves the device ready to resume playing or recording immediately. 
  481.  
  482. Using play or record to restart a device will reset the to and from positions specified before the device was paused or stopped. Without the from flag, these commands reset the start position to the current position. Without the to flag, they reset the end position to the end of the media. 
  483.  
  484. To continue playing or recording while stopping at a previously specified position, use the to flag with the play or record commands to specify an ending position. 
  485.  
  486. Some devices include the resume command to restart a paused device. This command does not change the to and from positions specified with the play or record command which preceded the pause command. 
  487.  
  488.  
  489.  
  490.  
  491. Getting Information from a Device
  492.  
  493. Every device responds to the capability, status, and info commands. These commands obtain information about the device. For example, the following command returns true if the cdaudio device can eject the disc: 
  494.  
  495. "capability cdaudio can eject" 
  496.  
  497. With the MCICDA.DRV driver included with the SDK, this example returns true. 
  498.  
  499. The flags listed for the required and basic commands provide a minimum amount of information about a device. Many devices supplement the required and basic flags with extended flags to provide additional information about the device. 
  500.  
  501. When you request information by using the capability, status, or info command, the argument list can contain only one flag requesting information. The command-string interface can only return one string or value in response to a command requesting information. 
  502.  
  503.  
  504.  
  505.  
  506. Closing a Device
  507.  
  508. The close command releases access to a device or device element. To help MCI manage the devices, your application must explicitly close each device or device element when it is finished with it. 
  509.  
  510.  
  511.  
  512.  
  513. Using All as the Device ID
  514.  
  515. You can specify all as a device ID for any command that does not return information. When you specify all, MCI sequentially sends the command to all devices opened by the current application. 
  516.  
  517. For example, "close all" closes all open devices and "play all" starts playing all devices opened by the application. Because MCI sequentially sends the commands to the MCI devices, there is a delay between when the first device receives the command and when the last device receives the command. 
  518.  
  519.  
  520.  
  521.  
  522. Audio CD Commands
  523.  
  524. The following list summarizes the commands used with the "cdaudio" device type: 
  525.  
  526.  
  527.  
  528.  
  529. Command     Description
  530.  
  531. -------     -------------------------------------
  532.  
  533. capability  Obtains the capabilities of a device.
  534.  
  535. close       Closes the device.
  536.  
  537. info        Obtains textual information from a device.
  538.  
  539. open        Initializes the device.
  540.  
  541. pause       Pauses playing.
  542.  
  543. play        Starts playing the device.
  544.  
  545. resume      Resumes playing or recording on a paused device.
  546.  
  547. seek        Seeks forward or backward.
  548.  
  549. set         Sets the operating state of the device.
  550.  
  551. status      Obtains status information from the device.
  552.  
  553. stop        Stops playing.
  554.  
  555.  
  556.  
  557.  
  558.  
  559.  
  560.  
  561.  
  562.  
  563. Animation Commands
  564.  
  565. The following list summarizes the MCI commands used with the "animation" device type: 
  566.  
  567.  
  568.  
  569.  
  570. Command     Description
  571.  
  572. -------     -------------------------------------
  573.  
  574. capability  Obtains the capabilities of a device.
  575.  
  576. close       Closes the device.
  577.  
  578. info        Obtains textual information from a device.
  579.  
  580. open        Initializes the device.
  581.  
  582. pause       Pauses the device.
  583.  
  584. play        Starts playing an animation sequence.
  585.  
  586. put         Defines the source, destination, and frame windows.
  587.  
  588. realize     Tells the device to select and realize its palette 
  589.  
  590.             into a display context of the displayed window.
  591.  
  592. resume      Resumes playing or recording on a paused device.
  593.  
  594. seek        Moves to the specified position on the animation 
  595.  
  596.             and stops.
  597.  
  598. set         Establishes control settings for the driver.
  599.  
  600. status      Obtains status information from the device.
  601.  
  602. step        Step the play one or more frames forward or reverse.
  603.  
  604. stop        Stops playing.
  605.  
  606. update      Repaints the current frame into the display context.
  607.  
  608. where       Obtains the rectangle specifying the source or 
  609.  
  610.             destination area.
  611.  
  612. window      Tells the device to use a given window for display 
  613.  
  614.             instead of the default window.
  615.  
  616.  
  617.  
  618.  
  619.  
  620.  
  621.  
  622.  
  623.  
  624.  
  625.  
  626. MIDI Sequencer Commands
  627.  
  628. The following list summarizes the commands used with the "sequencer" device type: 
  629.  
  630.  
  631.  
  632.  
  633. Command     Description
  634.  
  635. -------     -------------------------------------
  636.  
  637. capability  Obtains the capabilities of a device.
  638.  
  639. close       Closes the device.
  640.  
  641. info        Obtains textual information from a device.
  642.  
  643. open        Initializes the device.
  644.  
  645. pause       Pauses playing or recording.
  646.  
  647. play        Starts transmitting output data.
  648.  
  649. record      Starts recording input data.
  650.  
  651. resume      Resumes playing or recording on a paused device.
  652.  
  653. save        Saves data to a disk file.
  654.  
  655. seek        Seeks forward or backward.
  656.  
  657. set         Sets the operating state of the device.
  658.  
  659. status      Obtains status information from the device.
  660.  
  661. stop        Stops playing or recording.
  662.  
  663.  
  664.  
  665.  
  666.  
  667.  
  668.  
  669.  
  670.  
  671. Videodisc Command Overview
  672.  
  673. The following list summarizes the commands used with the "videodisc" device type: 
  674.  
  675.  
  676.  
  677.  
  678. Command     Description
  679.  
  680. -------     -------------------------------------
  681.  
  682. capability  Obtains the capabilities of a device.
  683.  
  684. close       Closes the device.
  685.  
  686. escape      Sends custom information to a device.
  687.  
  688. info        Obtains textual information from a device.
  689.  
  690. open        Initializes the device.
  691.  
  692. pause       Pauses playing.
  693.  
  694. play        Starts playing the device.
  695.  
  696. resume      Resumes playing or recording on a paused device.
  697.  
  698. seek        Seeks forward or backward.
  699.  
  700. set         Sets the operating state of the device.
  701.  
  702. spin        Starts the disc spinning or stops the disc from spinning.
  703.  
  704. status      Obtains status information from the device.
  705.  
  706. step        Step the play one or more frames forward or reverse.
  707.  
  708. stop        Stops playing.
  709.  
  710.  
  711.  
  712.  
  713.  
  714.  
  715.  
  716.  
  717.  
  718.  
  719.  
  720. Video Overlay Command Overview
  721.  
  722. The following list summarizes the commands used with the "overlay" device type: 
  723.  
  724.  
  725.  
  726.  
  727. Command     Description
  728.  
  729. -------     ------------------------------------
  730.  
  731. capability  Obtains the capabilities of a device.
  732.  
  733. close       Closes the device.
  734.  
  735. freeze      Disables video acquisition to the frame buffer.
  736.  
  737. info        Obtains textual information from a device.
  738.  
  739. load        Recalls data from a disk file.
  740.  
  741. open        Initializes the device.
  742.  
  743. put         Defines the source, destination, and frame windows.
  744.  
  745. save        Saves data to a disk file.
  746.  
  747. set         Sets the operating state of the device.
  748.  
  749. status      Obtains status information from the device.
  750.  
  751. unfreeze    Enables the frame buffer to acquire video data.
  752.  
  753. where       Obtains the rectangle specifying the source, 
  754.  
  755.             destination, or frame area.
  756. window      Tells the device to use a given window for 
  757.  
  758.             display instead of the default window.
  759.  
  760.  
  761.  
  762.  
  763.  
  764.  
  765.  
  766.  
  767.  
  768. Waveform Audio Command Overview
  769.  
  770. The following list summarizes the commands used with the "waveaudio" device type: 
  771.  
  772.  
  773.  
  774.  
  775. Command     Description
  776.  
  777. -------     -------------------------------------
  778.  
  779. capability  Obtains the capabilities of a device.
  780.  
  781. close       Closes the device.
  782.  
  783. cue         Prepares for playing or recording.
  784.  
  785. delete      Deletes a data segment from the MCI element.
  786.  
  787. info        Obtains textual information from a device.
  788.  
  789. open        Initializes the device.
  790.  
  791. pause       Pauses playing or recording.
  792.  
  793. play        Starts transmitting output data.
  794.  
  795. record      Starts recording input data.
  796.  
  797. resume      Resumes playing or recording on a paused device.
  798.  
  799. save        Saves data to a disk file.
  800.  
  801. seek        Seeks forward or backward.
  802.  
  803. set         Sets the operating state of the device.
  804.  
  805. status      Obtains status information from the device.
  806.  
  807. stop        Stops playing or recording.
  808.  
  809.  
  810.  
  811.  
  812.  
  813.  
  814.  
  815.  
  816.  
  817.  
  818.  
  819. Keywords: Last Updated: 1996 Author: Peter Caban Area: Gen TechNotes 
  820. ------------------------------------------------------------------------
  821. [home] [shockwave] [software] [support] [macromedia] [help] 
  822. Copyright ⌐1997 Macromedia« Inc. All rights reserved. Disclaimer. 
  823. Mirror Sites: [Asia] [Europe] [USA] 
  824.  
  825.  
  826.